import { http } from '@/utils/request'

/**
 * 获取示例列表数据
 * @param {Object} params - 查询参数
 * @returns {Promise}
 */
export const getDemoList = (params) => {
  return http.get('/demo/list', params)
}

/**
 * 获取示例详情
 * @param {Number|String} id - 详情ID
 * @returns {Promise}
 */
export const getDemoDetail = (id) => {
  return http.get(`/demo/detail/${id}`)
}
